package cn.itcast.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

//涨跌幅bean对象
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StockIncrBean {
       private Long eventTime; //时间时间
       private String secCode; //
       private String secName;
       private BigDecimal increase; //涨跌幅 = （当前价-前收盘价）/ 前收盘价 * 100%
       private BigDecimal tradePrice; //最新价
       private BigDecimal updown;   //涨跌 =当前价-前收盘价
       private Long tradeVol;       //总手、总成交量
       private BigDecimal amplitude; //振幅 =（当日最高点的价格－当日最低点的价格）/昨天收盘价×100%
       private BigDecimal preClosePrice; //前一日收盘价
       private Long tradeAmt;          //总成交金额
       private Long tradeTime;        //格式化时间（20220404）
       private String source;
}
